﻿@{
    Layout = null;
    string docClsName = ViewData["docClsName"] == null ? "最新信息" : ViewData["docClsName"].ToString();
    string docClsCd = ViewData["docClsCd"] == null ? "" : ViewData["docClsCd"].ToString();
}
@using ElingOA6_DSJCJ.Models;
@using Webdiyer.WebControls.Mvc
@model PagedList<ElingOA6_DSJCJ.Models.DocumentGridModel>
@{
Dictionary<string, string> dicDocClsNameList = ViewData["dicDocClsNameList"] == null ? new Dictionary<string, string>() : ViewData["dicDocClsNameList"] as Dictionary<string, string>;
}

<!DOCTYPE html>
<html>
<head>
    <title>@ElingOA6_DSJCJ.Common.GlobalConstant.CONSTRING_SYSTITLE</title>
    <link href="@Url.Content("~/Content/ztzl_css.css", true)" rel="stylesheet" type="text/css" />

    <script src="@Url.Content("~/Scripts/jquery.min.js", true)" type="text/javascript"></script>

</head>
<body>
<div class="ztzl-main">
    <div class="ztzl-header"><img src="@ViewData["logUrl"].ToString()" width="1000" height="226"/></div>
    @{
        if (dicDocClsNameList.Count > 0)
        {
                <div class="ztzl-nav2">
                 <a href="/Column/lzzc?clsCd=@docClsCd">首页</a>
                @foreach(KeyValuePair<string,string> dicDocClsNameModel in dicDocClsNameList)
                {
                    <a href="/Column/lzzc_List?clsCd=@dicDocClsNameModel.Key">@dicDocClsNameModel.Value</a>
                } 
                </div>
        }
    }
      <div class="ztzl-mainconlist">
    
    <div class="list_left">
    	<div class="list_left_t template2">首页</div>
        <div class="list_left_c2">
      <div class="padding-menu">
       @Html.Raw(ViewData["docClsHtml"].ToString())
       </div>
    </div>
</div>

<div class="list_content">
    	<div class="lc_t"><h3></h3><span><a href="#">首页</a> &gt; <a href="#">@docClsName</a></span></div>
        <ul class="lc_c">
        @foreach (DocumentGridModel documentModel in Model as List<DocumentGridModel>)
        { 
            <li><a href="/Column/lzzc_Detail?docId=@documentModel.FDocId" title="@documentModel.FTitle">@documentModel.FTitle</a><span>@documentModel.FPubDate.ToString("yyyy-MM-dd")</span></li>
        }
        </ul>
        <div class="manu">
        <span style="float: left; width: 40%;">共 @Model.TotalItemCount 条记录，页 @Model.CurrentPageIndex/@Model.TotalPageCount</span>
                            @Html.Pager(Model, new PagerOptions { ContainerTagName = "span", PageIndexParameterName = "id", AlwaysShowFirstLastPageNumber = true, HorizontalAlign = "right", FirstPageText = "首页", LastPageText = "末页" }, new { style = "" })
    </div>
    </div>
    
    </div>
@*
<div class="ztzl-maincon">
        <div class="ztzl-div2" style="width:978px;">
        	<div class="ztzl-title2"><span><a href="#">更多</a></span><h3>@docClsName</h3></div>
            <div class="ztzl-con2">
            	<table width="900" height="500" cellspacing="0" style="margin: 8px auto;">
                    <tr>
                        <td width="930" align="left" valign="top">
                            <table width="930" align="left" cellspacing="0" style="margin: 10px;">
                                <tr>
                                    <td colspan="2" width="750" align="center" class="db" style="font-weight: bold">
                                        标题</td>
                                    <td width="120" align="center" class="db" style="font-weight: bold">
                                        部门</td>
                                    <td width="120" align="center" class="db" style="font-weight: bold">
                                        发布时间</td>
                                </tr>
                                @foreach (DocumentGridModel documentModel in Model as List<DocumentGridModel>)
                                {
                                    <tr>
                                        <td width="16" height="25" align="center" class="db">
                                            <img src="@Url.Content("~/Content/images/clsTempl/05.gif", true)" width="6" height="6" /></td>
                                        <td width="600" class="db">
                                            <a href="/Column/lzzc_Detail?docId=@documentModel.FDocId" target="_blank" title="@documentModel.FTitle">@documentModel.FTitle</a></td>
                                        <td class="db" style="text-align: center">
                                            @documentModel.FDeptName</td>
                                        <td class="db" style="text-align: center">
                                            @documentModel.FPubDate.ToString("yyyy-MM-dd")</td>
                                    </tr>
                                }
                            </table>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2" height="35" style="padding-left: 50px;">
                            <span style="float: left; width: 40%;">共 @Model.TotalItemCount 条记录，页 @Model.CurrentPageIndex/@Model.TotalPageCount</span>
                            @Html.Pager(Model, new PagerOptions { ContainerTagName = "span", PageIndexParameterName = "id", AlwaysShowFirstLastPageNumber = true, HorizontalAlign = "right", FirstPageText = "首页", LastPageText = "末页" }, new { style = "" })
                        </td>
                    </tr>
                </table>
            </div>
        </div>
    </div>*@
    <div class="ztzl-bottom">@Html.Raw(ViewData["CopyRight"].ToString())</div>
</div>
</body>
</html>
